package ModelLayer;

/**
 * Write a description of class Person here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Person
{
    // instance variables - replace the example below with your own
    private int ID;
    private String name;
    private String address;
    private String postalCode;
    private String town;
    private int phoneNo;

    /**
     * Constructor for objects of the Person class
     */

    public Person(int ID, String name, String address, String postalCode, String town, int phoneNo)
    {
        this.ID = ID;
        this.name = name;
        this.address = address;
        this.postalCode = postalCode;
        this.town = town;
        this.phoneNo = phoneNo;
    }

    /**
     * Get methods that returns the wanted values 
     * @return     the values
     */
    public int getID()
    {
        return ID;
    }

    public String getName()
    {
        return name;
    }

    public String getAddress()
    {
        return address;
    }

    public String getPostalCode()
    {
        return postalCode;
    }

    public String getTown()
    {
        return town;
    }

    public int getPhoneNo()
    {
        return phoneNo;
    }

    /**
     * the update method that allows to change values for the person
     * @param id, name, address, postalCode, town, phoneNo
     */
    public void updatePerson(int ID, String name, String address, String postalCode, String town, int phoneNo)
    {
        this.ID = ID;
        this.name = name;
        this.address = address;
        this.postalCode = postalCode;
        this.town = town;
        this.phoneNo = phoneNo;
    }

}
